/*
* @Author: tiyuliuxing
* @Date:   2017-11-25 09:52:47
* @Last Modified by:   tiyuliuxing
* @Last Modified time: 2017-11-25 15:49:20
*/

/*匿名八卦*/

/*var param1 = {userToken:'biaoshihuipcceshi',type:"1",size:"2"};*/
/*$.getJSON(
	ip + '/index.php/Api/Find/findList?userToken=biaoshihuipcceshi&type=0&size=2&callback=?',
 	function(data) {
		console.log(data);
	}
);*/

function getLocalTime(nS) {
	return new Date(parseInt(nS) * 1000).toLocaleString().substr(0,17)
}
	//alert(getLocalTime(1293072805)); 
 //- 匿名八卦列表请求
$.ajax({
     url: ip + '/index.php/Api/Find/findList?userToken=biaoshihuipcceshi&type=0&size=2&os=web&callback=?',
     dataType: "jsonp"
 }).done(function(data) {
     //console.log(data.status);
    var gossip = data.data;
     for(var i=0;i<gossip.length;i++){
     	var temp = gossip[i];
	 	console.log(temp.find_time);
     	temp.pictures = !!temp.picture ? temp.picture.split(",") : [];
     	//console.log(temp);
     	var gossipHtml = template("gossipList", temp);
     	//console.log(gossipHtml);
     	$(".gossipCon").append(gossipHtml);
     }
 });

 